package pack1;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "users_details")
public class UserDet {

	@Id
	@Column
	private int id;
	@Column
	private String fname;
	@Column
	private String lname;
	@Column
	private String address;
	@Column
	private String gender;
	@Column
	private Date dob;
	@Column
	private String bgroup;
	@Column
	private String contactno;

	public UserDet() {
	}

	public UserDet(int id, String fname, String lname, String address,
			String gender, Date dob, String bgroup, String contactno) {
		this.id = id;
		this.fname = fname;
		this.lname = lname;
		this.address = address;
		this.gender = gender;
		this.dob = dob;
		this.bgroup = bgroup;
		this.contactno = contactno;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getLname() {
		return lname;
	}

	public void setLname(String lname) {
		this.lname = lname;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Date getDob() {
		return dob;
	}

	public void setDob(Date dob) {
		this.dob = dob;
	}

	public String getBgroup() {
		return bgroup;
	}

	public void setBgroup(String bgroup) {
		this.bgroup = bgroup;
	}

	public String getContactno() {
		return contactno;
	}

	public void setContactno(String contactno) {
		this.contactno = contactno;
	}

	@Override
	public String toString() {
		return "UserDet [id=" + id + ", fname=" + fname + ", lname=" + lname
				+ ", address=" + address + ", gender=" + gender + ", dob="
				+ dob + ", bgroup=" + bgroup + ", contactno=" + contactno + "]";
	}

}
